package forms

type PassWordLoginForm struct {
	Email    string `form:"email" json:"email" binding:"required,email"`
	Password string `form:"password" json:"password" binding:"required,min=3,max=16"`
}

type RegisterForm struct {
	Email     string `form:"email" json:"email" binding:"required,email"`
	Password  string `form:"password" json:"password" binding:"required,min=3,max=16"`
	FirstName string `form:"first_name" json:"first_name" binding:"required,max=50"`
	LastName  string `form:"last_name" json:"last_name" binding:"required,max=50"`
}

type UpdateUserForm struct {
	FirstName string `form:"first_name" json:"first_name" binding:"max=50"`
	LastName  string `form:"last_name" json:"last_name" binding:"max=50"`
	Email     string `form:"email" json:"email" binding:"max=200,email"`
	Mobile    string `form:"mobile" json:"mobile" binding:"max=20"`
	Address   string `form:"address" json:"address" binding:"max=200"`
}

type GoodsCollect struct {
	GoodsID string `form:"goods_id" json:"goods_id" binding:"required"`
}

type CollectForm struct {
	Keyword  string `form:"keyword" json:"keyword"`
	Page     int32  `form:"page" json:"page" binding:"number"`
	PageSize int32  `form:"page_size" json:"page_size" binding:"number"`
}
